package stock_dao;

import java.sql.SQLException;
import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import stock_vo.WareHouseVO;

public class WareHouseDaoImpl extends SqlMapClientDaoSupport implements WareHouseDao{
	@Override
	public void insertWareHouse(WareHouseVO vo) throws SQLException {
		this.getSqlMapClient().insert("warehouse.insertWareHouse",vo);		
	}
	@Override
	public List selectWareHouse() throws SQLException {
		return this.getSqlMapClient().queryForList("warehouse.selectWareHouse");
	}
	@Override
	public void deleteWareHouse(String warehouse_code) throws SQLException {
		this.getSqlMapClient().delete("warehouse.deleteWareHouse",warehouse_code);
	}
	@Override
	public List checkWareHouse(String warehouse_name) throws SQLException {
		// TODO Auto-generated method stub
		return this.getSqlMapClient().queryForList("warehouse.checkWareHouse",warehouse_name);
	}
}
